<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
</head>

	
<display:table name="listModel" requestURI="TimeOffEmployeeAction_list" class="listable" cellpadding="0" cellspacing="0" pagesize="12">
  <display:column property="employee.person.name" title="Employee" sortable="true"/>
  <display:column property="timeOffType" title="TimeOff Type" sortable="true" decorator="com.hexacta.hrs.web.util.TimeOffTypesDecorator"/>
  <display:column property="dateFrom" title="Date From" sortable="true" format="{0,date,dd/MM/yyyy}"/>
  <display:column property="dateTo" title="Date To" sortable="true" format="{0,date,dd/MM/yyyy}"/>
  <display:column property="currentStatus.status" title="Current Status" sortable="true"/>
</display:table>

<s:form action="AvailableLicenseDaysAction_edit"  method="post" cssClass="formClass">

   <s:textfield key="availableLicenseDays.currentPeriodVacationDays" disabled="true" label="Remaining Vacation Days" /> 
   <s:textfield key="availableLicenseDays.previousPeriodsVacationDays" disabled="true" label="Remaining Vacation Days from previous period/s"  />
   <s:textfield key="consumedStudyDays" disabled="true" label="Consumed Study Days"  />
   <s:textfield key="availableLicenseDays.compensationDays" disabled="true" label="Days Of Compensation" />
   
   <s:hidden key="requestId" value="%{availableLicenseDays.Id}"/>
   <s:hidden key="actionMethod" value="%{actionMethod}"/>
<s:if test="hasPermission(permissionNameConverter.getViewAllEmployeesTimeOffAndCompDaysPermission())">
	<s:submit action="AvailableLicenseDaysAction_edit" value="Edit" cssClass="btn"/>	
</s:if>
</s:form>

